package thread.noticywait.product;

public class ThreadP extends Thread{
	private P p;
	public P getP() {
		return p;
	}
	public void setP(P p) {
		this.p = p;
	}
	public ThreadP(P p) {
		super();
		this.p = p;
	}
	@Override
	public void run() {		
		super.run();
		while(true){
			p.setValue();
		}
	}

}
